package com.zrrd.learn.chapter08面向对象.pattern.singleton;

/**
 * 消费型
 *
 * @author wrn
 * @version 1.0
 * @date 2023/8/1 15:46
 */

public interface MyConsumer {

    void buy(DogClass str);

    public static void main(String[] args) {
        MyConsumer m = x-> System.out.println(x.getName());

        DogClass d = new DogClass();
        d.setName("张三");

        m.buy(d);
    }

}
